Commit Graph
24 Commits
Author SHA1 Message Date
Christian Duerr 12f952df42 Update manpage to document all CLI options
The introduction of `--class` has added a flag to the CLI without adding
it to the manpage. This has been fixed by updating the manpage.

This also adds the default values of `--class` and `--title` to the CLI
options.
2018-07-01 16:36:15 +00:00
Nathan Lilienthal f55252ec85 Override dynamic_title when --title is specified 2018-06-18 05:26:54 +00:00
Tezkerek 66acf1e03d Add working --class and --title CLI parameters 2018-06-07 16:53:16 +00:00
golem131 b82622e994 Update dependencies
Updated the version of some dependencies.

This also changes to a new clippy version so clippy can work with the latest nightly compiler again. Some issues created by new lints have been fixed.
2018-01-26 20:20:42 +00:00
Joe Wilm 672ea9b050 Remove built crate
This became a support burden for me due to various compile and run time
issues.
2017-12-22 14:25:14 -08:00
Matthias Krüger 9e6dd81ad9 clippy: string constants do not need to have static lifetime (const_static_lifetime). 2017-12-03 12:50:40 -08:00
hcpl 8a09917dd1 Output more info for --version (#888)
Useful when requesting more info to help investigating issues.
2017-11-11 17:17:47 -08:00
Joe Wilm 24fce939b7 Style fixes 2017-11-11 09:44:32 -08:00
Bryan Gilbert 812208d8b5 Don't enforce window dimensions if configured with 0 columns or lines 2017-11-11 09:44:32 -08:00
Aaron Hill 5f7885749c Use clippy = "*", update, and fix some warnings (#796)
Because there are so many clippy warnings in the current codebase,
this commit removes '#![cfg_attr(feature = "clippy", deny(clippy))]',
to make it easier to fix warnings incrementally.
2017-09-27 17:29:44 -07:00
Joe Wilm 59c1dbf5fe Change CLI live-config-reload options into flags
The previous format of --live-config-reload=VAL had a specific set of
allowed values which may not immediately be obvious. Instead, there are
now two flags which control the behavior:

    --live-config-reload
    --no-live-config-reload

If a user tries to specify both, the option parsing will fail with this
message:

    error: The argument '--no-live-config-reload' cannot be used with
        '--live-config-reload'
2017-08-29 09:32:37 -07:00
Liu Wei b38d825921 Implement options to not start the config_monitor thread (#689)
Provide a command line option as well as a configuration file option.
The command line option takes precedence.
2017-08-29 09:32:08 -07:00
polyfloyd 3f3ef9ac15 Add a long option for the command flag (-e) (#655) 2017-07-08 10:32:56 -07:00
Niklas Claesson 81116fb8a4 Add config file as cli option (#576)
* Parse cli arguments before configuration file

Parsing the cli arguments before the configuration file allows `--help`
and `--version` to be used even if the configuration file is broken.

* Add configuration file to command line arguments

This commit adds a new command line flag `--config-file` to override the default
configuration file location. If the specified file is unavailable,
Alacritty will quit instead of generating a fallback. If the specified
file is invalid, i.e. /dev/null, the compiled in defaults will be loaded
instead.
2017-05-28 17:42:36 -07:00
Zach Day 2bcd165a78 Add CLI arg for setting working directory
Resolves #478.
2017-04-18 19:53:31 -07:00
Justin Charette 5b079f6d43 Do not replace $SHELL with --command option
Signed-off-by: Justin Charette <charetjc@gmail.com>
2017-04-03 20:46:08 -07:00
Anders Rasmussen edc2c7f5b9 Configurable window dimensions
Adds a configuration option `dimensions` which will set initial
window size by columns and lines. Changes to the config file will
require restart.

resolves #370
2017-02-06 20:45:17 -08:00
Niklas Claesson 019daa8b69 Add support for -e argument 2017-01-28 12:25:57 -08:00
Kurnevsky Evgeny 1dca5617e2 Use clap as cli parser. 2017-01-24 08:38:38 -08:00
Lukas Lueg 64b42cd2f3 Use the log-crate instead of printing to stdout 2017-01-23 09:14:01 -08:00
Tom Crayford d7a5981048 print glutin events if --print-events is passed
When debugging many issues, it's often very helpful to have the raw
glutin events printed out to stderr as they come in. This does that.

Note that since `glutin::Event` doesn't implement `Display`, we just use
rust's debugging output for now via `{:?}`.
2017-01-08 21:09:02 +00:00
Rudis Muiznieks c0054d0fe2 Added --title argument to set window title 2017-01-06 09:18:23 -06:00
Joe Wilm ed0b1cfff0 Display manages window, renderer, rasterizer
This is part of an ongoing decoupling effort across the codebase and
tidying effort in main.rs. Everything to do with showing the window with
a grid of characters is now managed by the `Display` type. It owns the
window, the font rasterizer, and the renderer. The only info needed from
it are dimensions of characters and the window itself for sizing the
terminal properly. Additionally, the I/O loop has access to wake it up
when new data arrives.
2016-12-11 20:23:41 -08:00
Joe Wilm 01bb10885b Cleanup cli option parsing
This introduces the `cli` module and the `cli::Options` type. This type
holds all the options passable on the command line in addition to
providing arg parsing.
2016-12-11 20:23:41 -08:00