From a1849da175765350e013bdeecfa4e0ad3c066937 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 27 Mar 2019 15:22:46 -0700 Subject: Autoformat (mostly just to do with the new blank-line-after-end-of-multi-indent-block rule --- lib/tools/upgrade.nom | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/tools/upgrade.nom') diff --git a/lib/tools/upgrade.nom b/lib/tools/upgrade.nom index 65e9e68..f188276 100755 --- a/lib/tools/upgrade.nom +++ b/lib/tools/upgrade.nom @@ -1,5 +1,4 @@ #!/usr/bin/env nomsu -V7.0.0 - ### Tool to automatically update code from old versions of Nomsu. Usage: nomsu tools/upgrade.nom [-i] file1 file2 directory1 ... @@ -19,6 +18,7 @@ command line program with $args: if $start_version: try: use $start_version + $version = ($args."upgrade-to" or $(NOMSU VERSION)) $test = ($args.t or $args.test) for $filename in $args.extras: @@ -31,6 +31,7 @@ command line program with $args: $uptree = $tree upgraded from ($start_version or ($tree.version or $(NOMSU VERSION))) to $version + $text = "\$leading_indent\($uptree as nomsu, text, with "\n" -> "\n\$leading_indent")" when: $inplace: @@ -44,4 +45,4 @@ command line program with $args: say (bright "\$filename will be changed") else: - say $text inline + say $text inline \ No newline at end of file -- cgit v1.2.3