diff options
author | rsiddharth <rsd@gnu.org> | 2019-07-20 10:49:27 -0400 |
---|---|---|
committer | rsiddharth <rsd@gnu.org> | 2019-07-20 10:49:27 -0400 |
commit | 302b5e0964871f79cc781db18b52b7c04d9462af (patch) | |
tree | c67f8e3626e711f02974dcee208b838a96de57ff | |
parent | f3534a95c1914f929b484719284248de30c50442 (diff) |
lps_gen: Rename '-s' switch to '-sc'
* docs/install/index.rst: Update output of `lps_gen --help`
* docs/schedule/index.rst: Update `lps_gen` command.
* lps_gen.py (main): Rename '-s' switch to '-sc'.
-rw-r--r-- | docs/install/index.rst | 4 | ||||
-rw-r--r-- | docs/schedule/index.rst | 4 | ||||
-rw-r--r-- | lps_gen.py | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/docs/install/index.rst b/docs/install/index.rst index b3e3e55..6dd9f72 100644 --- a/docs/install/index.rst +++ b/docs/install/index.rst @@ -67,14 +67,14 @@ Do:: You must get:: - usage: lps_gen [-h] [-s | -sp] [--ical ICAL] [--version] lp_md + usage: lps_gen [-h] [-sc | -sp] [--ical ICAL] [--version] lp_md positional arguments: lp_md Path to the LP markdown. optional arguments: -h, --help show this help message and exit - -s, --schedule Generate LP schedule + -sc, --schedule Generate LP schedule -sp, --speakers Generate LP speakers --ical ICAL Specify LP year as argument; generates iCal --version Show version number and exit. diff --git a/docs/schedule/index.rst b/docs/schedule/index.rst index 691abf0..cbb0f7a 100644 --- a/docs/schedule/index.rst +++ b/docs/schedule/index.rst @@ -188,7 +188,7 @@ Generate HTML from Markdown ~~~~~~~~~~~~~~~~~~~~~~~~~~~ :: - $ lps_gen -s path/to/lp-sch.md > path/to/program-schedule.html + $ lps_gen -sc path/to/lp-sch.md > path/to/program-schedule.html or:: @@ -201,7 +201,7 @@ iCal export The ``--ical`` switch enables iCal export while generating LP schedule:: - $ lps_gen -s --ical 2016 path/to/lp-schedule.md > path/to/program-schedule.html + $ lps_gen -sc --ical 2016 path/to/lp-schedule.md > path/to/program-schedule.html The year of the conference must be given as an argument to the ``--ical`` switch. @@ -627,7 +627,7 @@ def main(): parser = ArgumentParser() group = parser.add_mutually_exclusive_group() - group.add_argument("-s", "--schedule", action="store_true", + group.add_argument("-sc", "--schedule", action="store_true", help="Generate LP schedule") group.add_argument("-sp", "--speakers", action="store_true", help="Generate LP speakers") |