@@ -138,11 +138,13 @@ public static string GetDefaultIcon()
138
138
$ "Example: -a \" Via SMS\" { NewLine } ";
139
139
140
140
//Help text
141
- public static readonly string HelpText =
141
+ public static string GetHelpText ( )
142
+ {
143
+ return
142
144
$ "Create a send notifications.{ NewLine } { NewLine } " +
143
145
$ "Usage: notifier <command>{ NewLine } { NewLine } " +
144
146
$ "Commands:{ NewLine } { NewLine } " +
145
- ( IsWindowsDesktopApp ?
147
+ ( IsWindowsDesktopApp ?
146
148
$ "[-r] <appId string><appName string> Registers notifier into the Windows machine.{ NewLine } " : string . Empty ) +
147
149
$ "[-t] <title string> Title is displayed on the first line of the notification.{ NewLine } " +
148
150
$ "[-m] <message string> Message is displayed wrapped below the title of the notification.{ NewLine } " +
@@ -156,20 +158,20 @@ public static string GetDefaultIcon()
156
158
$ "[-d] <short|long> Determines how long to display the notification for. Default is 'short'.{ NewLine } " : string . Empty ) +
157
159
$ "[-appID] <appID string> Used to display the notification.{ NewLine } " +
158
160
( IsUwpApp ?
159
- $ "[-i] <ID string, Text string, Place Holder Text string> Display inputs.{ NewLine } " : string . Empty ) +
160
- ( IsUwpApp ?
161
- $ "[-b] <ID string, Text string> Display buttons.{ NewLine } " : string . Empty ) +
162
- ( IsUwpApp ?
163
161
$ "[-l] <image URI> URI for a picture file to be displayed with the notification.{ NewLine } " : string . Empty ) +
164
162
$ "[-n] <appID string> Returns Notifications setting status for the application. Return values: Enabled, Disabled or Unknown.{ NewLine } " +
165
163
$ "[-k] Returns Notifications setting status for the system. Return values: Enabled or Disabled.{ NewLine } " +
164
+ ( IsUwpApp ?
165
+ $ "[-b] <ID string, Text string> Display buttons.{ NewLine } " : string . Empty ) +
166
+ ( IsUwpApp ?
167
+ $ "[-i] <ID string, Text string,{ NewLine } Place Holder Text string> Display inputs.{ NewLine } " : string . Empty ) +
166
168
$ "[-close] <ID string> Closes notification. In order to be able to close a notification,{ NewLine } " +
167
169
$ " the parameter -w must be used to create the notification.{ NewLine } " +
168
170
( IsUwpApp ?
169
171
$ "[-a] <text string> Attribution text is displayed at the bottom of the notification.{ NewLine } " : string . Empty ) +
170
172
$ "[-v] Displays version information.{ NewLine } " +
171
173
$ "[-?] Displays this help.{ NewLine } " +
172
- $ "[-help] Displays this help.{ NewLine } " +
174
+ $ "[-help] Displays this help.{ NewLine } { NewLine } " +
173
175
$ "Exit Codes: Failed -1, Success 0, Close 1, Dismiss 2, Timeout 3.{ NewLine } { NewLine } " +
174
176
$ "Examples:{ NewLine } { NewLine } " +
175
177
$ "notifier -t \" Hello World!\" { NewLine } " +
@@ -179,5 +181,6 @@ public static string GetDefaultIcon()
179
181
( IsUwpApp ?
180
182
$ "notifier register com.appvnext.windows-notifier appvnext-windows-notifier{ NewLine } " : string . Empty ) +
181
183
$ "{ NewLine } ";
184
+ }
182
185
}
183
- }
186
+ }
0 commit comments